package com.ph.shopping.facade.member.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.ph.shopping.common.core.base.BaseService;
import com.ph.shopping.common.core.customenum.ResultEnum;
import com.ph.shopping.common.util.result.Result;
import com.ph.shopping.facade.mapper.MemberChargeRecordMapper;
import com.ph.shopping.facade.member.entity.MemberChargeRecord;
import com.ph.shopping.facade.member.service.IMemberPayService;

/**
 * 
 * @项目：phshopping-service-member
 *
 * @描述：会员充值提现专用接口实现（本来应该写在IMemberService里面，与李杰沟通后，写在这里，其他模块的仍然写在所属模块接口里）
 *
 * @作者： liuy
 *
 * @创建时间：2017年4月1日
 *
 * @Copyright @2017 by liuy
 */
@Component
@Service(version="1.0.0")
public class MemberPayServiceImpl  extends BaseService implements IMemberPayService {

	//会员充值记录
	@Autowired
	private MemberChargeRecordMapper memberChargeRecordMapper;
	
    /**
     * 新增代理商充值记录
     * @param agentChargeRecord 代理商充值记录
     * @return Result
     * @author 刘颖
     */
	@Override
	public Result addMemberChargeRecord(MemberChargeRecord memberChargeRecord) throws Exception {
		this.memberChargeRecordMapper.addMemberChargeRecord(memberChargeRecord);
		return getResult(ResultEnum.SUCCESS);
	}
	
}
